import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-分页查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 发起合同支付流程
export function initBzFlow(data){
    return axios({
        url: assessCheckApi.initBzFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-合同支付流程保存接口
export function saveFlow(data){
    return axios({
        url: assessCheckApi.saveFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 内控-合同支付流程提交接口
export function submitFlow(data){
    return axios({
        url: assessCheckApi.submitFlow,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 删除合同支付申请
export function deleteLgqsFlowJob(params){
    return axios({
        url: assessCheckApi.deleteLgqsFlowJob,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
    return axios({
        url: assessCheckApi.queryJobByJobId,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
        url: assessCheckApi.returnUpperzdyFlowJob,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}
// 流程监控-分页查询
export function flowJkPage(params){
    return axios({
        url: assessCheckApi.flowJkPage,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 下载个人签名
export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        responseType: 'arraybuffer'
    })
}
// 列表-根据合同id查询登记的合同
export function selectHtByHtid(params){
    return axios({
        url: assessCheckApi.selectHtByHtid,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 列表-根据项目预算指标id查询项目预算指标
export function selectxmysBysid(params){
    return axios({
        url: assessCheckApi.selectxmysBysid,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 计算合同剩余金额
export function jsHtRemainingAmount(params){
    return axios({
        url: assessCheckApi.jsHtRemainingAmount,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}

// 选择合同审批单
export function selectSpd(params){
    return axios({
        url: assessCheckApi.selectSpd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 删除选择合同审批单
export function deleteSpd(params){
    return axios({
        url: assessCheckApi.deleteSpd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
